<?php

use yii\db\Migration;
use yii\db\Schema;

class m170124_075942_ADD_COLUMN_PRODUCT_ROOMS extends Migration
{
    public function up()
    {

         $this->addColumn('{{product}}', 'rooms', Schema::TYPE_TEXT. " NULL COMMENT '海外航线舱房信息存储字段' ");
    }

    public function down()
    {
        echo "m170124_075942_ADD_COLUMN_PRODUCT_ROOMS cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
